package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月19日 20时40分29秒
 */
@Table(name = "t_statistics")
public class Statistics extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_ITEMTYPE = "itemType";
	public static final String FIELD_ITEMID = "itemId";
	public static final String FIELD_COUNTCOMMENT = "countComment";
	public static final String FIELD_COUNTWATCH = "countWatch";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_COUNTPRAISE = "countPraise";
	public static final String FIELD_COUNTFAVORITE = "countFavorite";
	public static final String FIELD_COUNTCOUNTWRITE = "countWrite";

	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_ITEM_TYPE = "item_type";
	public static final String COLUMN_ITEM_ID = "item_id";
	public static final String COLUMN_COUNT_COMMENT = "count_comment";
	public static final String COLUMN_COUNT_WATCH = "count_watch";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_COUNT_PRAISE = "count_praise";
	public static final String COLUMN_COUNT_FAVORITE = "count_favorite";
	public static final String COLUMN_COUNT_WRITE = "count_write";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "item_type")
	private Short itemType;
	@Column(name = "item_id")
	private Long itemId;
	@Column(name = "count_comment")
	private Long countComment;
	@Column(name = "count_watch")
	private Long countWatch;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "count_praise")
	private Long countPraise;
	@Column(name = "count_favorite")
	private Long countFavorite;
	@Column(name = "count_write")
	private Long countWrite;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 统计的目标类型
	 * 
	 * @return itemType - 统计的目标类型
	 */
	public Short getItemType() {
		return itemType;
	}

	/**
	 * 设置 统计的目标类型
	 * 
	 * @param itemType
	 *            - 统计的目标类型
	 */
	public void setItemType(Short itemType) {
		this.itemType = itemType;
	}

	/**
	 * 获取 统计的目标
	 * 
	 * @return itemId - 统计的目标
	 */
	public Long getItemId() {
		return itemId;
	}

	/**
	 * 设置 统计的目标
	 * 
	 * @param itemId
	 *            - 统计的目标
	 */
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	/**
	 * 获取 评论总数
	 * 
	 * @return countComment - 评论总数
	 */
	public Long getCountComment() {
		return countComment;
	}

	/**
	 * 设置 评论总数
	 * 
	 * @param countComment
	 *            - 评论总数
	 */
	public void setCountComment(Long countComment) {
		this.countComment = countComment;
	}

	/**
	 * 获取 观看总数
	 * 
	 * @return countWatch - 观看总数
	 */
	public Long getCountWatch() {
		return countWatch;
	}

	/**
	 * 设置 观看总数
	 * 
	 * @param countWatch
	 *            - 观看总数
	 */
	public void setCountWatch(Long countWatch) {
		this.countWatch = countWatch;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 更新时间
	 * 
	 * @return updateTime - 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置 更新时间
	 * 
	 * @param updateTime
	 *            - 更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getCountPraise() {
		return countPraise;
	}

	public void setCountPraise(Long countPraise) {
		this.countPraise = countPraise;
	}

	public Long getCountFavorite() {
		return countFavorite;
	}

	public void setCountFavorite(Long countFavorite) {
		this.countFavorite = countFavorite;
	}

	public Long getCountWrite() {
		return countWrite;
	}

	public void setCountWrite(Long countWrite) {
		this.countWrite = countWrite;
	}
}